package com.example.blog.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginUser {
    @Min( value = 1,message = "该值最小为1" )
    private long id;
    @NotBlank(message = "该值不能为空,至少包含一个空白字符")
    private String token;


}
